﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Xiaoweiyu.Mvc.Internal
{
    class NonAuthorizedUser : MvcUser
    {
        public NonAuthorizedUser(string clientId,string ipAddress)
        {
            _clientId = clientId;
            _ipAddress = ipAddress;
        }

        string _clientId;

        public override long UserId
        {
            get { return 0; }
        }

        public override string ClientId
        {
            get { return _clientId; }
        }

        public override string DisplayName
        {
            get { return Resource.NonAuthorizedUserDisplayName; }
        }

        public override bool IsAdmin
        {
            get { return false; }
        }

        public override bool IsAuthorized
        {
            get { return false; }
        }

        string _ipAddress;
        public override string IpAddress
        {
            get { return _ipAddress; }
        }
    }
}
